package csl.blog.client;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * @Description: TODO
 * @author: 隔山海
 * @date: 2021年07月15日 13:44
 */
@Slf4j
@EnableAsync
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
@EnableDiscoveryClient // 服务发现
@EnableFeignClients //开启feign
@EnableHystrixDashboard //开启健康监控
public class BlogClientApplication {

    public static void main(String[] args) {
        SpringApplication.run(BlogClientApplication.class, args);
        log.info("消费者启动成功");
    }
}
